package com.hundsun.cprs.yyt.service.common.enums;

public enum EnumUserCertTypeMap {
	
	C01("C01",EnumUserType.COMPANY.getType(),"营业执照"),
	P01("P01",EnumUserType.INDIVIDUAL.getType(),"身份证"),
	C09("C09",EnumUserType.COMPANY.getType(),"组织机构代码"),
	C13("C13", EnumUserType.COMPANY.getType(), "统一社会信用代码");
	
	private String ucCode;
	private String code;
	private String desc;
	
	private EnumUserCertTypeMap(String ucCode,String code,String desc){
		this.ucCode = ucCode;
		this.code = code;
		this.desc = desc;
	}
	
	public static EnumUserCertTypeMap getByUcCode(String ucCode){
		for(EnumUserCertTypeMap map: values()){
			if(map.getUcCode().equals(ucCode))
				return map;
		}
		return null;
	}

	public String getUcCode() {
		return ucCode;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
}
